﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace Davsha.App.Actions
{
    class OpenProgram : IAction
    {
        public void Execute(ActionParameterCollection parameters)
        {
            string path = parameters["Path"];
            string arguments = null;
            parameters.TryGetParameterValue("Arguments", out arguments);

            Process p = new Process();
            p.StartInfo.FileName = path;
            p.StartInfo.Arguments = arguments;
            p.Start();
        }
    }
}
